chore: route all agent gh through the bot + add /setup-orchestrator - #20
Merged
Merged
Conversation
…p-orchestrator - Agents pinned to bot via bot-gh.sh (orchestrator broadened to ALL gh; implementer/reviewer/test-runner get GitHub-identity rules). - Loop scripts (notify-poll, merge-ready, pr-feedback) shim gh -> bot-gh.sh; merge runs as the bot, gate is still the owner's APPROVED review. - bot-gh.sh header updated to the broadened "all gh via bot" policy. - New /setup-orchestrator command: interactive full onboarding (adapter, gitignore, module:* labels, bot verify, CI gates, arm /pr-loop, offer /harden) with a non-blocking warn-then-ask on re-runs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K
robercano
approved these changes
Jul 1, 2026
This was referenced Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two related hardening/onboarding changes:
Route all
ghthrough the bot identity. Every orchestrator/agent GitHub call now goes through.claude/scripts/bot-gh.sh(never baregh); onlygitcommits/pushes stay as the owner so the owner can still approve bot PRs.orchestrator.md: rule broadened to allgh(reads + writes), and told to pass the rule to workers.implementer.md,reviewer.md,test-runner.md: each gets a "GitHub identity (hard rule)" section.notify-poll.sh,merge-ready.sh,pr-feedback.sh: shimgh -> bot-gh.sh. Merges now run as the bot; the merge gate is still the owner's APPROVED review.bot-gh.sh: header comment updated to the broadened policy.New
/setup-orchestratorcommand — interactive full onboarding that brings a fresh project to a working autonomous state: interview → writegates.json+CLAUDE.md→ gitignore hygiene → createmodule:*labels → verify the bot → confirm CI gates → offer to arm/pr-loop→ offer/harden(last, with restart sequencing). Non-blocking warn-then-ask if the project is already configured.Why
Notes
.claude/settings.jsonor generic behavior beyond the identity rules.🤖 Generated with Claude Code
https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K